'use strict';
const path = require('path');
const defaultSettings = require('./src/settings.js');

function resolve(dir) {
    return path.join(__dirname, dir)
}

const name = defaultSettings.title || 'Echo Online';// page title
const port = 9527; // 开发环境 前台端口
const backendPort = 9500;//开发环境 后台接口
const fileSysPort = 8018;//开发环境 文件系统

module.exports = {
    baseUrl: './',
    productionSourceMap: false,
    devServer: {
        port: port,
        open: true,
        overlay: {
            warnings: false,
            errors: true
        }/*,
        proxy: {
            '/api': {
                target: `http://127.0.0.1:${backendPort}`,
                changeOrigin: true,
                secure: true
            },
            '/file': {
                target: `http://127.0.0.1:${fileSysPort}`,
                changeOrigin: true,
                secure: true
            }
        }*/
    }
};